#include "process.h"
char style[S_NUM] ={'.','#','-'};
void show_progress(int persent)
{
    char bar[NUM];
    int i;
    int sign = 0;
    for(i = 0;i < persent;i++)
    {
        bar[i] = style[sign];
    }
    bar[i] = '\0';
    printf("\r[%s] %d%%",bar,persent);
    fflush(stdout);
}
void ProcessOn()
{ 
    int i;
    for(i = 0;i <= 100;i++ )
    {
        show_progress(i);
        usleep(50000);
    }
    printf("\n加载完成! \n");
}
